/**
 * 
 */
package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author Tino
 * 
 */
@Entity
@Table(name = "RKGL_REPERTORY_BRAND")
public class RepertoryBrand extends IdEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 880450495200371491L;

	/**
	 * 仓库
	 */
	private Repertory repertory;
	/**
	 * 品牌
	 */
	private Brand brand;

	@ManyToOne
	@JoinColumn(name = "REPERTORY_ID")
	public Repertory getRepertory() {
		return repertory;
	}

	public void setRepertory(Repertory repertory) {
		this.repertory = repertory;
	}

	@ManyToOne
	@JoinColumn(name = "BRAND_ID")
	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

}
